<?php
defined('InShopNC') or exit('Access Invalid!');
$config = array();
$config['shop_site_url'] 		= $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'];
$config['cms_site_url'] 		= $config['shop_site_url'].'/findtea';
$config['microshop_site_url'] 	= $config['shop_site_url'].'/microshop';
$config['circle_site_url'] 		= $config['shop_site_url'].'/circle';
$config['admin_site_url'] 		= $config['shop_site_url'].'/..ns.sj';
$config['mobile_site_url'] 		= $config['shop_site_url'].'/mobile';
$config['wap_site_url'] 		= $config['shop_site_url'].'/wap';
$config['wap_goods_url'] 		= $config['wap_site_url'].'/tmpl/product_detail.html?goods_id=';
$config['upload_site_url']		= $config['shop_site_url'].'/data/upload';
$config['resource_site_url']	= $config['shop_site_url'].'/data/resource';
$config['version'] 		= '201401162490';
$config['setup_date'] 	= '2015-08-07 11:51:59';
$config['gip'] 			= 0;
$config['dbdriver'] 	= 'mysqli';
$config['tablepre']		= 'shopnc_';
$config['db'][1]['dbhost']  	= 'localhost';
$config['db'][1]['dbport']		= '3306';
$isLocalhost=false;
if($config['shop_site_url']=='http://www.shujianhao.com'){
    $config['db'][1]['dbuser']  	= 'shujian_site';
    $config['db'][1]['dbpwd'] 	 	= 'shujian_site_db';
    $config['db'][1]['dbname']  	= 'shujian_site';
    $isLocalhost=true;
}else{
    $config['db'][1]['dbuser']  	= 'root';
    $config['db'][1]['dbpwd'] 	 	= 'root';
    $config['db'][1]['dbname']  	= 'shopnc';
}
$config['db'][1]['dbcharset']   = 'UTF-8';
$config['db']['slave'] 		= array();
$config['session_expire'] 	= 3600;
$config['lang_type'] 		= 'zh_cn';
$config['cookie_pre'] 		= '4DFC_';
$config['tpl_name'] 		= 'default';
$config['thumb']['cut_type'] = 'gd';
$config['thumb']['impath'] = '';
$config['cache']['type'] 			= $isLocalhost?'memcache':'file';
$config['memcache']['prefix']      	= 'nc_';
$config['memcache'][1]['port']     	= 11211;
$config['memcache'][1]['host']     	= '127.0.0.1';
$config['memcache'][1]['pconnect'] 	= 0;
//$config['redis']['prefix']      	= 'nc_';
//$config['redis']['master']['port']     	= 6379;
//$config['redis']['master']['host']     	= '127.0.0.1';
//$config['redis']['master']['pconnect'] 	= 0;
//$config['redis']['slave']      	    = array();
//$config['fullindexer']['open']      = false;
//$config['fullindexer']['appname']   = 'shopnc';
$config['default_store_id'] = '1';
// 是否开启伪静态
$config['url_model'] = false;
// 二级域名后缀
$config['subdomain_suffix'] = '';
//第三方授权登录
$config['oauth_login']=array(
    'alipay'=>array('name'=>'支付宝','api'=>'toalipay','use'=>1,'setting'=>array(
        'partner'=>'2088011537117961',//合作身份者id，以2088开头的16位纯数字
        'key'=>'6nw462i0e8cu89k2n6r581nxd2fgoo36',//安全检验码，以数字和字母组成的32位字符
    )),
    'weixin'=>array('name'=>'微信','logo'=>'toweixin','use'=>1,'setting'=>array('appid'=>'wxa67768338124e8d2','secret'=>'5f96ecaf88714cc795f8bfcb48b7007b')),
    'qq'=>array('name'=>'QQ','api'=>'toqq','use'=>1),
    'sina'=>array('name'=>'新浪','api'=>'tosina','use'=>1),
);
//支付宝网银支付
$config['alipay_card']=array(
    //银行列表
    'list'=>array(
        'icbc'=>'ICBCB2C',//中国工商银行
        'abc'=>'ABC',//中国农业银行
        'ccb'=>'CCB',//中国建设银行
        'boc'=>'BOCB2C',//中国银行
        'cmb'=>'CMB',//招商银行
        'bcom'=>'COMM-DEBIT',//交通银行
        'spdb'=>'SPDB',//上海浦东发展银行
        'cmbc'=>'CMBC',//中国民生银行
        'cib'=>'CIB',//兴业银行
        'ceb'=>'CEB-DEBIT',//中国光大银行
        'gdb'=>'GDB',//广发银行
        'pab'=>'SPABANK',//平安银行
        'psbc'=>'POSTGC',//中国邮政储蓄银行
        'cncb'=>'CITIC',//中信银行
    ),
    //网银支付
    'bank'=>array('icbc','abc','ccb','boc','cmb','bcom','spdb','cmbc','cib','ceb','gdb','pab','psbc','cncb'),
    //信用卡支付
    'moto'=>array('cmb','ccb','icbc','boc','abc','pab','cib','spdb','cmbc','ceb'),
);